<?php
/**
 * modules | promociones | action | create | controller
 */
	$object->insertar();
	
	$object_cont = new DB("contenidoxpromocion");
	foreach ($contenidoxpromocion as $cont) {
		$object_cont->establecer("fk_id_promocion",$object->obtenerUltimoId());
		$object_cont->establecer("tipo",$cont['tipo']);
		$object_cont->establecer("cantidad",$cont['cantidad']);
		$object_cont->establecer("fk_id_tipo",$cont['fk_id_tipo']);
		$object_cont->insertar();
	}
?>